//
//  UIImage+Extension.m
//  Final
//
//  Created by lanou3g on 15/12/4.
//  Copyright © 2015年 皮比诺. All rights reserved.
//

#import "UIImage+Extension.h"

@implementation UIImage (Extension)
+(instancetype)resizeImage:(NSString *)imageName
{
    UIImage *bgImage = [UIImage imageNamed:imageName];
    bgImage = [bgImage stretchableImageWithLeftCapWidth:bgImage.size.width / 2 topCapHeight:bgImage.size.height / 2];
    
    return bgImage;
}
@end
